﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using laba2.Entity;

namespace laba2.Configurations
{
    public class EvaluationConfiguration : EntityTypeConfiguration<Evaluation>
    {
        public EvaluationConfiguration()
        {
            Property(e => e.CourseId).IsRequired();
            Property(e => e.Minimum).IsRequired();
            Property(e => e.Maximum).IsRequired();
            Property(e => e.Evaluation1).IsRequired().HasMaxLength(10);
        }
    }
}
